package com.luych.toolbox.common.feign.view.automation.service;

import com.luych.toolbox.common.enums.AutoSshServerStatus;
import com.luych.toolbox.common.feign.FeignView;
import com.luych.toolbox.common.feign.view.base.service.UserView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("SSH主机数据返回")
public class AutoSshServerView extends FeignView {

    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("状态")
    private AutoSshServerStatus status;
    @ApiModelProperty("IP地址")
    private String host;
    @ApiModelProperty("端口")
    private Integer port;
    @ApiModelProperty("用户名")
    private String user;
    @ApiModelProperty("CPU架构")
    private String arch;
    @ApiModelProperty("系统名称")
    private String osName;
    @ApiModelProperty("系统版本")
    private String osVersion;
    @ApiModelProperty("责任人")
    private UserView owner;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AutoSshServerStatus getStatus() {
        return status;
    }

    public String getStatusValue() {
        return status == null ? null : status.getValue();
    }

    public void setStatus(AutoSshServerStatus status) {
        this.status = status;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getArch() {
        return arch;
    }

    public void setArch(String arch) {
        this.arch = arch;
    }

    public String getOsName() {
        return osName;
    }

    public void setOsName(String osName) {
        this.osName = osName;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public UserView getOwner() {
        return owner;
    }

    public void setOwner(UserView owner) {
        this.owner = owner;
    }

    public String getOwnerId() {
        return owner == null ? null : owner.getId();
    }
}
